package com.wx.javacode.exercise;

/**
 * ClassName:Computer
 * Package :com.wx.javacode.exercise
 * Description :
 *
 * @Author : coder_mu
 * @Create : 2023/5/17 - 15:59
 */
public class Computer {
    private String cpu;
    private int memory;
    private int disk;

    public String getCpu() {
        return cpu;
    }

    public int getMemory() {
        return memory;
    }

    public int getDisk() {
        return disk;
    }
//    public Computer() {
//    }

    public Computer(String cpu, int memory, int disk) {
        this.cpu = cpu;
        this.memory = memory;
        this.disk = disk;
    }

    //返回详细信息
    public String showInfo() {
        return "cpu=" + cpu + "memory=" + memory + "disk=" + disk;
    }
}
